@(listaSetores: List[String])
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<title>SGE - TADS</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
		<link rel="shortcut icon" type="image/jpg" href="@routes.Assets.at("images/SESAP.jpg")">
		<script type="text/javascript">
					function dados(){
						x = document.getElementById("camp1").selectedIndex;
						y = document.getElementById("camp1").options;
						document.form1.camp2.value = y[x].text;
					}
					
					function validaForm(){
						if(document.form1.camp2.value == "" || document.form1.camp2.value == null){
							alert("Campo Vazio. Selecione um Setor!")
							return false;
						} else {
							document.form1.camp2.disabled = false;
							return true;
						}
					}
		</script>
	</head>
	<body>
	  <div id="content">
		<div id="header">
		  <h1><a href="#">Sistema Gerenciador de Escalas</a><br/><em>Hospital Dr. Jos&eacute; Pedro Bezerra </em></h1>
		</div>
		<div id="page">
				<h2> -- Remocao de Setor -- </h2><br/>
				<form name="form1" onsubmit="return validaForm()" action="/removerSetor">		
				<select id="camp1" size="1">
					@for(setor <- listaSetores){
						<option value="@setor">@setor</option>
					}
				</select>
				<input type="button" onclick="dados()" value="Confirmar"/> <br/> <br/>		 	
				<label>Setor escolhido para remocao: </label>
				<input type="text" name="NomeSetor" id="camp2" disabled="disabled"/> <br/>		 	
				<button action="submit">Remover</button> <br/> <br/> <br/>
				<a href="/chefeRH">Voltar</a>
			 </form>
				<br/><br/>
			</div>
		<div id="foot">
				<p>SGE - Sistema Gerenciador de Escalas - Hospital Santa Catarina - v1.0 <br />
				<a href="http://www.saude.rn.gov.br/contentproducao/aplicacao/sesap/guia_saude/gerados/hospitalsantacatarina.asp"
				target="_blank">Hospital Dr. Jos&eacute; Pedro Bezerra (Santa Catarina)</a></p>
				<p>&copy; Copyright | Design by Jhoseph, Ana Priscila, Alexsandra e Sayonara</p>
			</div>
		  </div>
	</body>
</html>